package Practice2;

public class Student extends Person{
    public Student() {
        super();
    }
    private String school;
    public void setSchool(String school) {
        this.school = school;
    }
    public String getSchool() {
        return school;
    }
    @Override
    public String toString() {
        return "姓名是"+getName()+"，"+"年龄是"+getAge()+"，"+"学校是"+school;
    }
}
